import request from '/@/utils/request';

/**
 * 学生分组
 * @param params 要传的参数值
 * @returns 返回接口数据
 * @method experimentInfo 获取实验信息
 * @method studentInfo 获取学生信息
 * @method getStudentInfo 获取学生信息
 * @method addGroupInfo 添加分组
 * @method addGradeInfo 添加成绩
 */

export function experimentInfo(params: any) {
	return request({
		url: `experiment?experiment_id=${params}`,
		method: 'get',
	});
}

export function studentInfo(params: any) {
	return request({
		url: `student?Size=50&lesson_id=${params}`,
		method: 'get',
	});
}

export function getStudentInfo(params: any) {
	return request({
		url: `student?student_id=${params}`,
		method: 'get',
	});
}

export function addGroupInfo(params: any) {
	return request({
		url: 'group/add',
		method: 'post',
		data: params,
	});
}

export function addGradeInfo(params: any) {
	return request({
		url: 'groupGrade/add',
		method: 'post',
		data: params,
	});
}